<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo1"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<body>

<div class="layui-card">

    <div class="layui-card-header">
        <span class="layui-icon font-s10 color-desc margin-right-5"></span>评价管理
        <div class="pull-right">
<!--            <button data-table-id="NoticeTable" class="layui-btn layui-btn-primary  layui-btn-sm" data-modal="/system/user/form" data-height="720px" data-width="800px">-->
<!--                <i class=" layui-icon layui-icon-addition"></i>新建护工</button>-->
        </div>
    </div>

    <div class="layui-card-line"></div>

    <div class="layui-card-body">

        <div class="layui-card-table layui-tab">
            <div class="layui-tab-content">
                <form th:replace="/pcs/evaluate/index_search">

                </form>
                <table id="evaluateTable" data-url="/pcs/evaluate/index" data-target-search="form.form-search"></table>
                <script type="text/javascript" th:inline="none">
                    $(function () {
                        $('#evaluateTable').layTable({
                            even: true, height: 'full',
                            cols: [[
                                {checkbox: true, fixed: true, width: 60},
                                {title: '序号', type: 'numbers', width: 80},
                                {field: 'name', title: '陪护员', minWidth: 180, align: 'center'},
                                {field: 'sex', title: '性别', align: 'center', templet: function (d) {
                                    if (d.sex == 1) {
                                        return '男';
                                    } else if (d.sex == 2) {
                                        return '女';
                                    } else {
                                        return '未知';
                                    }
                                }},
                                {field: 'age', title: '年龄', align: 'center'},
                                {field: 'phone', title: '手机号', align: 'center', minWidth: 110},
                                {field: 'patientName', title: '患者', align: 'center', minWidth: 110},
                                {field: 'orderType', title: '服务类型', align: 'center', minWidth: 110, templet: function (d) {
                                        if (d.orderType == 1) {
                                            return '陪护';
                                        } else if (d.orderType == 2) {
                                            return '陪诊';
                                        } else {
                                            return '陪检';
                                        }
                                    }},
                                {field: 'score', title: '评分', align: 'center', minWidth: 110},
                                {field: 'createTimeStr', title: '评价时间', align: 'center', minWidth: 110},
                                {field: 'remark', title: '评语', align: 'center', minWidth: 110},

                                {toolbar: '#toolbar', title: '操作', align: 'center', minWidth: 120, fixed: 'right'}
                            ]]
                        });
                    });



                </script>


                <script type="text/html" id="toolbar">

                    <a class="layui-btn layui-btn-sm" style="background-color: #16baaa" data-event-dbclick data-title="查看"    data-modal='/pcs/evaluate/detail?id={{d.id}}'>查看</a>

                </script>

            </div>
        </div>
    </div>

</div>
</body>
</html>